<?php
session_start();
	# for check login 
	function CheckAdminLogin() { 
		
		if(!isset($_SESSION["admin_id"])) {
			ob_flush();
			$admin_url = SITE_URL."/admin/";
			echo "<script language='javascript' type='text/javascript'>window.parent.location='$admin_url';</script>";
		}
	}
?>